import $axios from './index.js'

// 百度统计站点列表
function webList(data) {
  const url = '/statistics/lists'
  return $axios.get(url, data)
}
// 用户年龄分群
function ageList(data) {
  const url = '/statistics/age'
  return $axios.get(url, data)
}
// 今日昨日浏览量分析
function lineList(data) {
  const url = '/statistics/outline'
  return $axios.get(url, data)
}
// 趋势图
function qxtList(data) {
  const url = '/statistics/qxt'
  return $axios.get(url, data)
}
// 关键词消费排名
function KeywordsList(data) {
  const url = '/statistics/search_word'
  return $axios.get(url, data)
}
// 网站概况(来源网站、搜索词、入口页面、受访页面、新老访客)
function commonList(data) {
  const url = '/statistics/get_common_track_rpt'
  return $axios.get(url, data)
}
// 网站概况(地域分布)
function areaList(data) {
  const url = '/statistics/area'
  return $axios.get(url, data)
}
// 网站概况(地域分布Top10)
function areaTop(data) {
  const url = '/statistics/area_top'
  return $axios.get(url, data)
}
// 百度统计账号信息查看
function accountInfo(data) {
  const url = '/statistics/read'
  return $axios.get(url, data)
}
// 百度统计账号信息设置
function accountUpdate(data) {
  const url = '/statistics/update'
  return $axios.get(url, data)
}

// 百度统计汇总数据
function baidu(data) {
  const url = '/seo/baidu'
  return $axios.get(url, data)
}

export default {
  webList,
  baidu,
  ageList,
  lineList,
  qxtList,
  KeywordsList,
  commonList,
  areaList,
  areaTop,
  accountInfo,
  accountUpdate
}
